home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 61
/
Volume 61 - JOGO DISK .iso
/
Games
/
casa-da-claudia.swf
/
scripts
/
frame_1
/
DoAction.as
Wrap
Text File
|
2008-03-17
|
568b
|
36 lines
function decoexe()
{
var k = 1;
while(k <= deconum)
{
if(k < 10)
{
k = "0" + k;
}
this["yojo_" + k].onPress = function()
{
btdown(this._name);
};
this["yojo_" + k].onRelease = function()
{
btup(this._name);
};
k++;
}
}
function btdown(name)
{
startDrag(name,0);
swnum++;
this[name].swapDepths(swnum);
this[name].depth = swnum;
deconame = name;
}
function btup(name)
{
stopDrag();
}
deconum = 100;
stop();
decoexe();